home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-09-01 | 1.2 KB | 53 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="4"
- "COUNT"="1"
- "UIPATH 1"="System\File System\Folders\System"
- "NAME"="CE File Sync Folder"
- "VERSION"="1.34"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Path"
- "DESCRIPTION 1"="You can alter the synchronization path for the first Windows CE H/PC here."
- "DESCRIPTION 2"="Note that this plug-in will only work if your H/PC was already connected!"
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- sPath1="HKCU\Software\Microsoft\Windows CE Services\Partners"
- sPath2="\Services\Synchronization\Briefcase Path"
- sPathEx=""
- Sub Plugin_Initialize
- if RegPathExists(sPath1) then
- iCount=RegEnumPaths(sPath1)
-
- if iCount>0 then
- s=RegEnumElement(1)
- sPathEx=sPath1 & "\" & s & sPath2
-
- s=RegReadValue(sPathEx)
- Call SetUIElement(1,s) 'set data in X-Setup
- else
- Disable
- end if
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
-
- if Right(s,1)<>"\" then
- s=s & "\"
- end if
-
- Call RegWriteValue(sPathEx,s,1)
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-